package com.example.book.mapper;

import com.example.book.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    //查询是否存在不存在的类型数据
    @Select("select name from category where category_id = #{categoryId}")
    String getCategory(int categoryId);

}
